package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by sk on 2018/3/29.
 */

public class ByPartsList {


    /**
     * returnCode : 1
     * returnMsg : 成功
     * resultList : [{"partsId":null,"partsName":"力魔（LIQUI MOLY） 顶技4100全合成润滑油 5W-40 SN/CF 1L (德国)德、法、意、美系车推荐（1L装）5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f81eea00fb","priceQx":"129.00","stockNum":"10","vin":"1057257"},{"partsId":null,"partsName":"奥迪4S店直供 原厂全合成机油发动机润滑油 SM 5W-40 1升 1L 全车系通用 A1 A3 A4 A4L A6 A6L TT Q3 Q5 Q74s原厂全合成机油1L5W-40（奥迪原厂）","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f81fec0105","priceQx":"125.00","stockNum":"10","vin":"1089828"},{"partsId":null,"partsName":"奥迪4S店直供 原厂全合成机油发动机润滑油 SM 5W-40 4升 4L 全车系通用 A1 A3 A4 A4L A6 A6L TT Q3 Q5 Q74S原厂全合成机油4L5W-40（奥迪原厂）","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f81fec0105","priceQx":"409.00","stockNum":"10","vin":"1089829"},{"partsId":null,"partsName":"奥迪（AUDI）4s店直供 A1 A3 A4L A6L Q3 Q5 原厂防冻液LG012A8GM140A4S原厂防冻液LG012A8GM140A","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f81fec0105","priceQx":"75.00","stockNum":"10","vin":"1093809"},{"partsId":null,"partsName":"力魔（LIQUI MOLY） 高技全合成润滑油 1L 5W-40 SM/CF(德国)德系车推荐（1L装）5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f81eea00fb","priceQx":"149.00","stockNum":"10","vin":"1110789"},{"partsId":null,"partsName":"曼牌（MANNFILTER） C32130空气滤清器 （奥迪Q5/A4/A5/A4L）C32130C32130","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f820550109","priceQx":"129.00","stockNum":"10","vin":"1118159"},{"partsId":null,"partsName":"曼牌（MANNFILTER） CUK2450 空调滤清器（奥迪A4/A4L/A5/Q5/保时捷Macan）CUK2450CUK2450","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f820550109","priceQx":"139.00","stockNum":"10","vin":"1118166"},{"partsId":null,"partsName":"昆仑天润 KR8 合成型高性能发动机油 SM 5W-40 3.5kg5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f820210107","priceQx":"308.00","stockNum":"10","vin":"1134054"},{"partsId":null,"partsName":"昆仑天润 KR7 优质多级汽油机油 SL 5W-403.5kg5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f820210107","priceQx":"169.00","stockNum":"10","vin":"1134056"},{"partsId":null,"partsName":"昆仑天润 KR9 全合成高性能发动机油 SN 5W-40 3.5kg5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f820210107","priceQx":"438.00","stockNum":"10","vin":"1134057"},{"partsId":null,"partsName":"迈戈龙（MEGALONG） 全合成 SN 5W-40 4L 机油-5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f821920115","priceQx":"518.00","stockNum":"10","vin":"1159848"},{"partsId":null,"partsName":"迈戈龙（MEGALONG） 全合成 SN 5W-40 1L 机油-5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f821920115","priceQx":"148.00","stockNum":"10","vin":"1159849"},{"partsId":null,"partsName":"埃尔夫（ELF）欧风900 FTA 5W-40 全合成机油润滑油 1L1L5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f81f7f0101","priceQx":"110.00","stockNum":"10","vin":"1168185"},{"partsId":null,"partsName":"奥吉星（OGISTAR）5W-40 汽车发动机油 优质汽机油 半合成 润滑油 API SL 4L15W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f81fb60103","priceQx":"129.00","stockNum":"10","vin":"1309995"},{"partsId":null,"partsName":"嘉实多（Casrtol）磁护5W-40 4L 合成机油润滑油SN/CF (60*4L)-5W-40","partsOeCode":"","partsCount":null,"partsQualityList":null,"brandName":null,"brandCode":"402880ec6168d9cf016168f81f3800fe","priceQx":"13889.00","stockNum":"10","vin":"1335491"}]
     * returnObject : null
     */

    private int returnCode;
    private String returnMsg;
    private Object returnObject;
    private List<ResultListBean> resultList;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public Object getReturnObject() {
        return returnObject;
    }

    public void setReturnObject(Object returnObject) {
        this.returnObject = returnObject;
    }

    public List<ResultListBean> getResultList() {
        return resultList;
    }

    public void setResultList(List<ResultListBean> resultList) {
        this.resultList = resultList;
    }

    public static class ResultListBean implements Parcelable {
        /**
         * partsId : null
         * partsName : 力魔（LIQUI MOLY） 顶技4100全合成润滑油 5W-40 SN/CF 1L (德国)德、法、意、美系车推荐（1L装）5W-40
         * partsOeCode :
         * partsCount : null
         * partsQualityList : null
         * brandName : null
         * brandCode : 402880ec6168d9cf016168f81eea00fb
         * priceQx : 129.00
         * stockNum : 10
         * vin : 1057257
         */

        private String partsId;
        private String partsName;
        private String partsOeCode;
        private int partsCount;
        private String brandName;
        private String brandCode;
        private String priceQx;
        private String stockNum;
        private String vin;
        private boolean isSelect = false;

        public String getPartsId() {
            return partsId;
        }

        public void setPartsId(String partsId) {
            this.partsId = partsId;
        }

        public String getPartsName() {
            return partsName;
        }

        public void setPartsName(String partsName) {
            this.partsName = partsName;
        }

        public String getPartsOeCode() {
            return partsOeCode;
        }

        public void setPartsOeCode(String partsOeCode) {
            this.partsOeCode = partsOeCode;
        }

        public int getPartsCount() {
            return partsCount;
        }

        public void setPartsCount(int partsCount) {
            this.partsCount = partsCount;
        }

        public String getBrandName() {
            return brandName;
        }

        public void setBrandName(String brandName) {
            this.brandName = brandName;
        }

        public String getBrandCode() {
            return brandCode;
        }

        public void setBrandCode(String brandCode) {
            this.brandCode = brandCode;
        }

        public String getPriceQx() {
            return priceQx;
        }

        public void setPriceQx(String priceQx) {
            this.priceQx = priceQx;
        }

        public String getStockNum() {
            return stockNum;
        }

        public void setStockNum(String stockNum) {
            this.stockNum = stockNum;
        }

        public String getVin() {
            return vin;
        }

        public void setVin(String vin) {
            this.vin = vin;
        }

        public boolean isSelect() {
            return isSelect;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.partsId);
            dest.writeString(this.partsName);
            dest.writeString(this.partsOeCode);
            dest.writeInt(this.partsCount);
            dest.writeString(this.brandName);
            dest.writeString(this.brandCode);
            dest.writeString(this.priceQx);
            dest.writeString(this.stockNum);
            dest.writeString(this.vin);
            dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
        }

        public ResultListBean() {
        }

        protected ResultListBean(Parcel in) {
            this.partsId = in.readString();
            this.partsName = in.readString();
            this.partsOeCode = in.readString();
            this.partsCount = in.readInt();
            this.brandName = in.readString();
            this.brandCode = in.readString();
            this.priceQx = in.readString();
            this.stockNum = in.readString();
            this.vin = in.readString();
            this.isSelect = in.readByte() != 0;
        }

        public static final Parcelable.Creator<ResultListBean> CREATOR = new Parcelable.Creator<ResultListBean>() {
            @Override
            public ResultListBean createFromParcel(Parcel source) {
                return new ResultListBean(source);
            }

            @Override
            public ResultListBean[] newArray(int size) {
                return new ResultListBean[size];
            }
        };
    }
}
